package com.sh.sales.happysales.ui.activity;

import android.content.Intent;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.ImageView;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.sh.sales.happysales.R;
import com.sh.sales.happysales.app.utils.LoginOutUtil;
import com.sh.sales.happysales.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;
import butterknife.OnClick;

/**
 * Created by zhouyucheng on 2017/9/15.
 */

public class SetActivity extends BaseActivity {
    @BindView(R.id.set_back)
    ImageView setBack;
    @BindView(R.id.profect_next)
    TextView profectNext;
    @BindView(R.id.set_about)
    LinearLayout setAbout;
    @BindView(R.id.current_level_num)
    TextView currentLevelNum;
    @BindView(R.id.current_level)
    LinearLayout currentLevel;
    @BindView(R.id.system_out)
    LinearLayout systemOut;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_set);
        mAppManager.addActivity(this);
        ButterKnife.bind(this);
    }

    @OnClick({R.id.set_back, R.id.set_about, R.id.current_level, R.id.system_out})
    public void onViewClicked(View view) {
        switch (view.getId()) {
            case R.id.set_back:
                mAppManager.finishActivity(this);
                break;
            case R.id.set_about:
                Intent m = new Intent();
                m.setClass(SetActivity.this, AboutUsActivity.class);
                startActivity(m);
                break;
            case R.id.current_level:
                break;
            case R.id.system_out:
                LoginOutUtil.logOut(SetActivity.this);
                break;
        }
    }
}
